Workflow Approval System for Common Man using WhatsApp Integration

Python • Twilio API • WhatsApp Business API • Django/Flask

Project Overview
Project NameWorkflow Approval System for Common Man using WhatsApp
TechnologiesPython, Twilio API, WhatsApp Business API, Django/Flask
Problem StatementComplex digital workflow systems are inaccessible to common users.
AI ComponentNLP for understanding user requests, routing workflows, approval suggestions.
SolutionWhatsApp chatbot for submitting documents, approvals, and tracking using conversational AI.
ImpactMakes workflow approvals accessible to the general public, improves government & citizen service engagement.
Dataset Structure
Table NameDescription
citizen_requestsTracks workflow initiation messages sent by users
request_metadataStores extracted entities using NLP (type, urgency, department)
approval_chainDefines required approvers and workflow steps
whatsapp_messagesAll inbound/outbound WhatsApp messages via API
approval_statusTracks progress, timestamps, and results
ai_recommendationsAI suggestions for routing, escalation, or required documents
user_profilesBasic info: phone, role, region, language preferences
Sample Data (Mock Dataset)

citizen_requests

Request IDUser PhoneMessageTimestamp
REQ101+91 9822334455I want to apply for an income certificate2025-11-19 09:22
REQ102+91 8877665544Please approve my water connection request2025-11-19 10:10

request_metadata

Request IDRequest TypeUrgencyDepartment
REQ101Income CertificateNormalRevenue Dept
REQ102Water Connection ApprovalHighMunicipal Water Dept

approval_chain

Request TypeStepApprover RoleSLA (hrs)
Income Certificate1Clerk24
Income Certificate2Tahsildar48
Water Connection1Section Engineer12

whatsapp_messages

Message IDFromToMessageStatus
MSG5001UserBotPlease approve my requestReceived
MSG5002BotUserYour request ID is REQ102Delivered

approval_status

Request IDCurrent StepStatusLast Updated
REQ101Step 1 (Clerk)Pending2025-11-19 11:30
REQ102Step 1 (Engineer)Approved2025-11-19 12:15

ai_recommendations

Request IDRecommendationReason
REQ101Notify Clerk for faster processingExceeded 40% of SLA time
REQ102Escalate to SuperintendentUser urgency set to High